//
//  AnimationLzj.m
//  天气预报
//
//  Created by inphase on 17/8/19.
//  Copyright © 2017年 inphase. All rights reserved.
//

#import "AnimationLzj.h"

@implementation AnimationLzj

+(void)creatAnimation{
    
    //创建动画
    CATransition *animation = [CATransition animation];
    //设置运动轨迹的速度
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
    //设置动画类型为立方体动画
    animation.type = @"Reveal";
    //设置动画时长
    animation.duration =0.5f;
    //设置运动的方向
    animation.subtype =kCATransitionFromRight;
    //控制器间跳转动画
    [[UIApplication sharedApplication].keyWindow.layer addAnimation:animation forKey:nil];
}
@end
